package com.yi.wood.dao;

import com.yi.wood.entity.UserRole;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author MoYi
 * create date 2019/4/6 14:59
 */
public interface UserRoleDao extends JpaRepository<UserRole, Long> {
    /**
     * 统计userId的映射
     * @param roleId 角色ID
     * @return 统计数量
     */
    int countByRoleIdEquals(Long roleId);
}
